package org.lin.shortlink.core;

public enum ResponseEnums {

    SUCCESS(200, "SUCCESS"),
    FAIL(500, "FAIL"),
    LONG_URL_FAIL(50010, "网址必须以http或https开头");
    int code;
    String message;
    ResponseEnums(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
